<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<HyperLocal.Core.LocalOrbMessage>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                LocalOrbMessageId
            </th>
            <th>
                LocalOrbUserId
            </th>
            <th>
                Message
            </th>
            <th>
                DateCreated
            </th>
            <th>
                DateDeleted
            </th>
            <th>
                Active
            </th>
            <th>
                Deleted
            </th>
            <th>
                LocalOrbCommunityId
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id=item.LocalOrbMessageId }) %> |
                <%= Html.ActionLink("Details", "Details", new { id=item.LocalOrbMessageId })%>
            </td>
            <td>
                <%= Html.Encode(item.LocalOrbMessageId) %>
            </td>
            <td>
                <%= Html.Encode(item.LocalOrbUserId) %>
            </td>
            <td>
                <%= Html.Encode(item.Message) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.DateCreated)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.DateDeleted)) %>
            </td>
            <td>
                <%= Html.Encode(item.Active) %>
            </td>
            <td>
                <%= Html.Encode(item.Deleted) %>
            </td>
            <td>
                <%= Html.Encode(item.LocalOrbCommunityId) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleInjection" runat="server">
</asp:Content>

